﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BFlatCompile.Nodes
{
	public class Break : Executable
	{
		private Break() { }

		public static Executable ParseBreak(Tokens tokens)
		{
			tokens.PopExpected("break");
			tokens.PopExpected(";");
			return new Break();
		}

		public override void ResolveCode(Class c, Dictionary<object, object> parents)
		{
			// nothing to resolve
		}

		public override void ResolveClassToThis(Class c)
		{
			// nothing to resolve
		}
	}
}
